package fachadaPlantilla.actions;

import plantilla.IPlantillaDAO;
import plantilla.PlantillaDAOFactory;
import plantilla.PlantillaTO;

public class GuardarPlantillaAction {

	private String ruta;
	private PlantillaTO pto;

	public GuardarPlantillaAction(PlantillaTO pto, String ruta) {
		this.ruta = ruta;
		this.pto = pto;
	}

	public Object Execute() {
		try {
			IPlantillaDAO plantillaDAO = PlantillaDAOFactory.GetDAO();
			plantillaDAO.crearPlantilla(pto, ruta);
			return null;

		} catch (Exception e) {
			return null;
		}

	}

}
